package me.firstapp.repository.weixin.weibi;

import java.util.Date;
import java.util.List;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.weixin.weibi.WeiBiAccountTrace;
import me.firstapp.module.weixin.weibi.WeiBiAccountTrace.ChangeType;
import me.firstapp.repository.base.EntityRepository;

public interface WeiBiAccountTraceRepository extends EntityRepository<WeiBiAccountTrace> {

	List<WeiBiAccountTrace> findWeiBiAccountTracePageByOpenId(Long weiBiAccountId, int pageIndex, int pageSize);

	WeiBiAccountTrace findByWeiBiAccountIdAndChangeTypeAndChangeDate(Long weiBiAccountId, ChangeType changeType,
			Integer changeDate);

	Page<WeiBiAccountTrace> findWeiBiAccountTracePage(Long weiBiAccountId, Integer pageNo, Integer pageSize,
			Map<String, Object> searchParams, String sortParam, String sortType, Date startTime, Date endTime);
}
